package com.wyp.microservice.t.service;

import com.wyp.microservice.t.model.Blog;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Date;


/**
 * @Description: 
 * @Author:  wyp
 * @Date: 2020-11-15 16:14:12
 * @Copyright: Fujian Linewell Software Co., Ltd. All rights reserved.
 */
@Service
public interface BlogService {

    /**
     * 获取Blog对象
     * @param id
     * @return
     */
    Blog getBlog(Long id);

    /**
     * 批量删除Blog
     * @param ids
     */
    void deleteBlog(List<Long> ids);

    /**
     * 查询
     * @param id 
     * @param title 
     * @param content 
     * @param firstPicture 
     * @param flag 
     * @param views 
     * @param appreciation 
     * @param notice 
     * @param shareStatement 
     * @param carousel 
     * @param comment 
     * @param published 
     * @param recommend 
     * @param headline 
     * @param createTimeBegin （起）
     * @param createTimeEnd （止）
     * @param updateTimeBegin （起）
     * @param updateTimeEnd （止）
     * @param typeId 
     * @param userId 
     * @param description 
     * @param tagIds 
     * @return
     */
    List<Blog> getBlogList(Long id, String title, String content, String firstPicture, Short flag, Integer views, Short appreciation, Short notice, Short shareStatement, Short carousel, Short comment, Short published, Short recommend, Short headline, Date createTimeBegin, Date createTimeEnd, Date updateTimeBegin, Date updateTimeEnd, Long typeId, Long userId, String description, String tagIds);

    /**
     * 新增Blog
     * @param blog
     * @return
     */
    Blog addBlog(Blog blog);

    /**
     * 更新Blog
     * @param blog
     * @return
     */
    Blog updateBlog(Blog blog);
}
